package com.boss.controller;

import com.alibaba.fastjson.JSON;
import com.boss.entity.Education;
import com.boss.service.EducationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/education")
public class EducationController {
    @Autowired
    private EducationService educationService;

    /**
     * 获取所有工作学历
     * @return
     */
    @RequestMapping("/getAllEucation")
    public String getAllEducation1(){
        List<Education> list = educationService.getAllEducation1();
        String json = JSON.toJSONString(list);
        return json;
    }
}
